package com.baosan.school.controller;

import com.baosan.school.po.Result;
import com.baosan.school.po.UserPO;
import com.baosan.school.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: school
 * @description:
 * @author: heping
 * @create: 2022-01-14 10:11
 */
@RestController
@RequestMapping("/user")
@CrossOrigin
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/login")
    public Result<UserPO> login(UserPO po){
        return userService.checkPwd(po);
    }


}

